import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
// import App from './App';
import App  from './views/app';
import {Provider} from "react-redux" // 将组件和仓库进行关联得都在react-redux里
import {BrowserRouter} from "react-router-dom" // 下载的时候下5版本得
import store from './store';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    // 只有用provider包裹住的组件，才可以使用仓库得数据
    // 将仓库注入到组件中去
    <Provider store={store}>
         <BrowserRouter>
            <App />
         </BrowserRouter>
    </Provider>
   
  
 
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();
